<template>
  <j-select-biz-component
    :value="value"

    name="权限"
    displayKey="fileName"

    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    queryParamText="名称"

    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
    import JSelectBizComponent from './JSelectBizComponent'

    export default {
        name: 'JSelectOpenApiRole',
        components: {JSelectBizComponent},
        props: ['value'],
        data() {
            return {
                returnKeys: ['id','fileUrl'],
                url: {list: '/magic/magicApiFile/queryPathAll'},
                columns: [
                    {title: '方法名', dataIndex: 'fileName', align: 'center', width: 120},
                    {title: 'api', dataIndex: 'filePath', align: 'center', width: 120},
                    {title: 'URL', dataIndex: 'fileUrl', align: 'center', width: 120},
                    {title: '请求方式', dataIndex: 'method', align: 'center', width: 120},
                ]
            }
        }
    }
</script>

<style lang="less" scoped></style>